home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
geninput.zip
/
TEST.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1993-01-04
|
962b
|
40 lines
Program Test;
Uses CRT,
GENINPUT;
Const
PhoneMask:String[12] = 'XXX-XXX-XXXX';
Var
TestVar1: String[40];
TestVar2: STring[12];
{$V-}
Begin
clrscr;
Writeln('This is a demo of the Geninput.tpu. When called upon to ');
Writeln('data - enter whatever you like. The TPU will recognize ');
Writeln('back arrow, backspace, and on masked input like the phone ');
Writeln('number - it will appropriately skip the dashes on data entry.');
gotoxy(10,10);
write('Input a varable here ');
TestVar1:=' ';
Inputit(wherex,wherey,TestVar1,FALSE);
TestVar2:=PhoneMask;
gotoxy(10,11);
Write('Input phone # here ');
Inputit(wherex,wherey,TestVar2,TRUE);
Writeln;
Writeln;
Writeln('The first variable was ',TestVar1);
Writeln('The Second variable was ',TestVar2);
Writeln;
Writeln;
Writeln('That is the demo folks!!!, Sorry there aint no more for free!');
end.